/*
 * Filename    : Graphic_Detach.java
 * Projectname : RamaShinta
 * Date        : Nov 18, 2012 , 7:38:47 PM 
 * 
 * Class for detaching our image
 * 
 * Subclass From Graphic_Attach
 */

package com.amikomgamedev.ramashinta.graphic;

import org.andengine.engine.camera.Camera;
import org.andengine.engine.camera.hud.HUD;
import org.andengine.entity.scene.Scene;
import org.andengine.entity.sprite.ButtonSprite.OnClickListener;

import android.content.Context;

public class Graphic_Detach extends Graphic_Attach
{

	public Graphic_Detach(Context contect, Scene p_Scene, HUD p_Hud, Camera p_Camera, OnClickListener p_Click)
	{
		super(contect, p_Scene, p_Hud, p_Camera, p_Click);

	}

	public void detachLogo()
	{
		spr_Logo.detachSelf();
	}

	public void detachCreditBg()
	{
		spr_Credit_Bg.detachSelf();

	}

	public void detachHelpBg()
	{
		spr_Help_Bg.detachSelf();
	}

	public void detachLoadingBg()
	{
		spr_Loading_Bg.detachSelf();
	}

	public void detachMenuUtama()
	{
		detachCoklatCupcorn();
		detachButtonMenu();
		detachButtonMenuPressed();
		detachMenuBg();
		detachGear();
		detachFacebook();
		detachTwitter();
	}

	public void detachMenuLevel()
	{
		detachMenuLevelLove();
		detachMenuLevelBg();
	}
	
	public void detachMenuStage()
	{
		detachMenuSelectStage();
		detachMenuStageLingkaran();
		detachArrowStage();
	}

	public void detachGameplay()
	{

		detachGameplayBg();
		detachIndikatorBar();
		detachMcShinta();
		detachRectangleKotakShinta();
		detachButtonPanah();
		detachButtonPanahPressed();
		detachButtonMove();
		detachMcRama();
		detachMcRahwana();
		detachRectangleGameplay();
		detachMenuPauseBtn();
		detachBarrierRama();
		detachBarrierRahwana();
		detachKandang();
		detachStat();
	}
	
	private void detachStat(){
		spr_Stat_BonekaRama.detachSelf();
		spr_Stat_BonekaRahwana.detachSelf();
		spr_Stat_ApiRama.detachSelf();
		spr_Stat_ApiRahwana.detachSelf();
		spr_Stat_ChocoRahwana.detachSelf();
		spr_Stat_ChocoRama.detachSelf();
	}
	
	public void detachTry()
	{
		spr_Btn_Try_Win.detachSelf();
	}
	
	public void detachNext()
	{
		spr_Btn_Next_Win.detachSelf();
	}
	
	public void detachKandang()
	{
		spr_Kandang.detachSelf();
	}
	
	public void detachBarrierRama()
	{
		spr_BarrierRama.detachSelf();
	}
	
	public void detachBarrierRahwana()
	{
		spr_BarrierRahwana.detachSelf();
	}
	
	// public void detachPanahGameplay()
	// {
	// spr_Panah_Gameplay.detachSelf();
	// }

	public void detachMenuPause()
	{
		spr_Menu_Pause_Bg.detachSelf();
		spr_Pause_Btn_Continue.detachSelf();
		spr_Pause_Btn_Restart.detachSelf();
		spr_Pause_Btn_MainMenu.detachSelf();
	}

	public void detachSelectStage()
	{
		spr_Stage_Bg.detachSelf();
		for(int i =0; i < spr_Icon_Stage.length; i++)
		{
			spr_Icon_Stage[i].detachSelf();
		
		}
		
		for(int i =0; i < 2; i ++)
		{
			for(int j =0; j < spr_Pointer[0].length; j++)
			{
				spr_Pointer[i][j].detachSelf();
			}
		}
	}
	
	public void detachItemLove()
	{
		spr_Item_Love.detachSelf();
	}

	public void detachStateWin()
	{
		detachLoveWin();
		detachArrowWin();
		detachButtonTryWin();
		detachNext();
		detachTry();
	}
	
	public void detachStateLastWin()
	{
		detachLoveWin();
		detachArrowWin();
		detachTry();
	}
	
	public void detachStateLose()
	{
		detachLoveLose();
		detachTry();
	}

	public void detachButtonTryWin()
	{
		spr_Btn_TryNext_Win.detachSelf();
	}

	private void detachArrowWin()
	{
		spr_Arrow_Win.detachSelf();
	}

	private void detachLoveWin()
	{
		spr_Love_Win.detachSelf();
	}
	
	private void detachLoveLose()
	{
		spr_Love_Lose.detachSelf();
	}

	private void detachMenuPauseBtn()
	{
		spr_Menu_Pause_Btn.detachSelf();

	}

	private void detachButtonPanah()
	{
		spr_Gameplay_Btn_Panah[0].detachSelf();
	}

	private void detachButtonPanahPressed()
	{
		spr_Gameplay_Btn_Panah[1].detachSelf();
	}

	private void detachMenuLevelLove()
	{
		for (int i = 0; i < spr_Menu_Level_Love.length; i++)
		{
			spr_Menu_Level_Love[i].detachSelf();
		}

	}

	private void detachMenuLevelBtnBack()
	{
		spr_Menu_Level_Btn_Back.detachSelf();

	}

	private void detachMenuLevelBg()
	{
		spr_Menu_Level_Bg.detachSelf();

	}

	private void detachMenuBg()
	{
		spr_Menu_Bg.detachSelf();
	}
	
	private void detachCoklatCupcorn()
	{
		spr_Menu_Coklat.detachSelf();
	}
	
	private void detachGear()
	{
		spr_Gear.detachSelf();
	}
	
	public void detachFacebook()
	{
		spr_Facebook.detachSelf();
	}
	
	public void detachTwitter()
	{
		spr_Twitter.detachSelf();
	}

	private void detachButtonMenu()
	{
		for (int i = 0; i < BUTTON_MENU.length; i++)
		{
			spr_Button_Menu[i].detachSelf();
		}
	}
	
	public void detachButtonMenuPlay()
	{
		
			spr_Button_Menu[0].detachSelf();
	}
	
	public void detachButtonMenuHelp()
	{
		
			spr_Button_Menu[1].detachSelf();
	}
	
	public void detachButtonMenuCredit()
	{
		
			spr_Button_Menu[2].detachSelf();
	}
	
	public void detachButtonMenuMulti()
	{
		
			spr_Button_Menu[3].detachSelf();
	}
	
	public void detachButtonMenuPressed()
	{
		for (int i = 0; i < BUTTON_MENU.length; i++)
		{
			spr_Button_Menu[i].detachSelf();
		}
	}

	// private void detachAwanUtama()
	// {
	// spr_Menu_Awanutama.detachSelf();
	// }
	//
	// private void detachBorderAwan()
	// {
	// spr_Menu_Boderawan.detachSelf();
	// }

	private void detachGameplayBg()
	{
		spr_Gameplay_bg.detachSelf();
	}

	private void detachRectangleGameplay()
	{
		for (int i = 0; i < rect_Gameplay.length; i++)
		{
			rect_Gameplay[i].detachSelf();
		}
	}

	private void detachIndikatorBar()
	{
		spr_Indikator_Bar_kanan.detachSelf();
		spr_Indikator_Bar_kiri.detachSelf();
	}

	private void detachMcShinta()
	{
		spr_Mc_Shinta.detachSelf();
	}

	private void detachRectangleKotakShinta()
	{
		rect_BalokShinta.detachSelf();
	}

	private void detachButtonMove()
	{
		for (int i = 0; i < GAMEPLAY_BUTTON_MOVE.length; i++)
		{
			spr_Gameplay_Button_Move[i].detachSelf();
		}
	}

	private void detachMcRama()
	{
		spr_Mc_Rama.detachSelf();
		spr_Celebrasi_Rama.detachSelf();
	}

	private void detachMcRahwana()
	{
		spr_Mc_Rahwana.detachSelf();
		spr_Celebrasi_Rahwana.detachSelf();
	}
	
	private void detachMenuSelectStage()
	{
		for(int i=0; i<MENU_SELECT_STAGE_BG.length;i++)
		{
			spr_Menu_Select_Stage[i].detachSelf();
		}
	}
	
	private void detachMenuStageLingkaran(){
		for (int i = 0; i < spr_Menu_Select_Stage.length; i++)
		{
			lst_Menu_Stage_Lingkaran.get(i).detachSelf();
		}
		lst_Menu_Stage_Lingkaran.clear();
	}
	
	
	private void detachArrowStage(){
	for (int i = 0; i < spr_Stage_Arrow.length; i++)
	{
		 spr_Stage_Arrow[i].detachSelf();
	}}

}
